package com.fenghen.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fenghen.common.annotation.Excel;
import com.fenghen.common.core.domain.BaseEntity;

/**
 * 风险识别模块对象 risk_identification
 * 
 * @author fenghen
 * @date 2024-11-06
 */
public class RiskIdentification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long riskId;

    /** 风险名称 */
    @Excel(name = "风险名称")
    private String riskName;

    /** 风险类型 */
    @Excel(name = "风险类型")
    private String riskType;

    /** 发生的可能性 */
    @Excel(name = "发生的可能性")
    private BigDecimal likelihood;

    /** 风险影响程度 */
    @Excel(name = "风险影响程度")
    private String impactLevel;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setRiskId(Long riskId) 
    {
        this.riskId = riskId;
    }

    public Long getRiskId() 
    {
        return riskId;
    }

    public void setRiskName(String riskName) 
    {
        this.riskName = riskName;
    }

    public String getRiskName() 
    {
        return riskName;
    }

    public void setRiskType(String riskType) 
    {
        this.riskType = riskType;
    }

    public String getRiskType() 
    {
        return riskType;
    }

    public void setLikelihood(BigDecimal likelihood) 
    {
        this.likelihood = likelihood;
    }

    public BigDecimal getLikelihood() 
    {
        return likelihood;
    }

    public void setImpactLevel(String impactLevel) 
    {
        this.impactLevel = impactLevel;
    }

    public String getImpactLevel() 
    {
        return impactLevel;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("riskId", getRiskId())
            .append("riskName", getRiskName())
            .append("riskType", getRiskType())
            .append("likelihood", getLikelihood())
            .append("impactLevel", getImpactLevel())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
